home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000202_news@columbia.edu _Mon Apr 17 21:37:10 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id VAA24761
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 17 Apr 2000 21:37:09 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id VAA13745
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 17 Apr 2000 21:22:09 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: Russell McManus <russell.mcmanus@msdw.com>
  10. Subject: setting executable bit on uploaded file
  11. Date: 17 Apr 2000 20:23:33 -0400
  12. Organization: Morgan Stanley Dean Witter and Discover
  13. Message-ID: <jqag0sk6yuy.fsf@msdw.com>
  14. To: kermit.misc@columbia.edu
  15.  
  16.  
  17. I've got a nice kermit script that does everything that I want it to
  18. do except one thing: the binary that it uploads does not have the
  19. executable bit set.  I have looked through my copy of "Using
  20. C-Kermit", correspoding to version 6.0 (blue cover), to no avail for
  21. the one magic 'set' command that I am missing.
  22.  
  23. So I've tried to program it myself, but have failed.  
  24.  
  25. The script does some tricky login stuff, runs a kermit in server mode
  26. on the remote end, transfers some files.
  27.  
  28. At this point, the files don't have the right executable bit.  So I
  29. figured I'd just say bye to the remote kermit server, and do a couple
  30. of output commands like this to shell on the remote end:
  31.  
  32.   output chmod +x file\13
  33.  
  34. No dice, though, something weird is going on with the connection after
  35. the kermit server on the remote end gets the bye.  Both kermits are
  36. 6.0 running on Solaris.
  37.  
  38. Any help would be greatly appreciated.
  39.  
  40. Kind regards,
  41. -russ
  42.  
  43.  
  44. Here is the script:
  45.  
  46. # args:
  47. #   1: machine name
  48. #   2: kuu account
  49. #   3: username
  50. #   4: password
  51.  
  52. define open-network-and-kuu -
  53.   echo open-network-and-kuu \%1 \%2 \%3 \%4,-
  54.   set network tcp/ip,-
  55.   set host \%1,-
  56.   input 5 login:,-
  57.   output \%3\13,-
  58.   input 5 Password:,-
  59.   output \%4\13,-
  60.   input 5 $,-
  61.   output kuu \%2 \%2\13,-
  62.   input 5 Password:,-
  63.   output \%4\13,-
  64.   input 5 $
  65.  
  66. # get user name
  67. open !read whoami
  68. read \%u
  69.  
  70. # get password
  71. ask \%p {Password:}
  72.  
  73. # connect and run remote kermit server
  74. open-network-and-kuu somemachine someaccount \%u \%p
  75. output kermit -x\13
  76.  
  77. # set up connection for speed, then send files
  78. set file type binary
  79. set window 32
  80. remote set window 32
  81. remote set receive packet-length 4096
  82. remote cd /some/dest/dir
  83. add send-list rbi
  84. add send-list RBI
  85. add send-list rbi-init.scm
  86. send
  87.  
  88. # everything works before here
  89.  
  90. # exit server mode
  91. bye
  92.  
  93. # this doesn't work: why?
  94. output run chmod +x rbi\13
  95. hangup
  96. exit
  97.